//
//  YXYBaseModel.m
//  Topit
//
//  Created by dllo on 15/12/3.
//  Copyright © 2015年 YXY. All rights reserved.
//

#import "YXYBaseModel.h"

@implementation YXYBaseModel

- (instancetype)initWithDictionary:(NSDictionary *)data
{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:data];
    }
    return self;
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"id"]) {
        self.nId = value;
    }
}

@end
